package com.genius.smsdao.admin.dao;


import com.genius.smsbase.Dao.GenericDao;
import com.genius.smsdao.admin.domain.User;
import org.springframework.data.jpa.repository.Query;

/**
 * @Daoname UserDao
 * @Description UserDao
 * @author：
 */
public interface UserDao extends GenericDao<User, Long> {

    User findByName(String username);

    @Query("from User where password = ?1")
    User findUserByPassword(String oldPassword);


}
